import React from 'react'
import store from './redux/store'
export default function Test(props) {
  const { state, dispatch } = props
  return (
    <div>
      Test
      <hr />
      <p>{state.xxx}</p>
      <button
        onClick={() => {
          dispatch({
            type: 'updateXxx',
            payload: '老陶,嘿嘿嘿,确实是个lsp',
          })
        }}
      >
        修改xxx
      </button>
    </div>
  )
}
